<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<script src='../javascripts/validate.js' type='text/javascript'></script>
<link rel='stylesheet' href='../css/style3.css' type='text/css' media='screen'>
<?php 

	
	$sel = $_GET['sel']; 
	$id = $_SESSION['curuser'];
	if($sel == 'changeInfo'){
	$data = mysql_query("SELECT * FROM `tbluser` WHERE userid = '$id'"); //where condition
	while($row = mysql_fetch_array($data)){	
	echo "<form name='vform' id='vform' method='get' action='validate.php'>
	
<table width='80%' border='0' cellspacing='0' cellpadding='0' style='height:30px'>
  <tr>
    <td width='20%'><label for='fname'>First Name</label></td>
    <td width='43%'><input name='fname' type='text' disabled size='35' value='$row[fname]' /></td>
    <td width='37%'>&nbsp;</td>
  </tr>
  <tr>
    <td><label for='mname'>Middle Name</label></td>
    <td><input name='mname' type='text' disabled size='35' value='$row[mname]' /></td>
	<td>&nbsp;</td>
  </tr>
  <tr>
    <td><label for='lname'>Last Name</label></td>
    <td><input name='lname' type='text' disabled size='35' value='$row[lname]' /></td>
	<td>&nbsp;</td>
  </tr>
  <tr>
    <td><label for='add'>Address</label></td>
    <td><input name='add' type='text' id='add' class='required,alphanum' value='$row[address]' size='35' autocomplete='off'>&nbsp;<img width='16' height='16' name='add' src='images/blank.gif' alt=''></td>
    <td class='expl'>home address</td>
  </tr>
  <tr>
    <td><label for='city'>City</label></td>
    <td><input name='city' type='text' id='city' class='required,alpha' size='35' value='$row[city]' autocomplete='off'/>&nbsp;<img width='16' height='16' name='city' src='images/blank.gif' alt=''></td>
	<td class='expl'>city location</td>
  </tr>
  <tr>
    <td><label for='cp'>Cellphone No.</label></td>
    <td><input name='cp' type='text' id='cp' class='required,cp' maxlength='50' size='35' value='$row[cp]' autocomplete='off'/>&nbsp;<img width='16' height='16' name='cp' src='images/blank.gif' alt=''></td>
	<td class='expl'>e.g. +63xxxxxxxxxx</td>
  </tr>
  <tr>
    <td><label for='landline'>Landline</label></td>
    <td><input name='landline' type='text' id='landline' class='required,phone' maxlength='50' size='35' value='$row[phone]'/>&nbsp;<img width='16' height='16' name='landline' src='images/blank.gif' alt=''></td>
	<td class='expl'>e.g. (02)xxx-xx-xx</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
	<td class='submit'>&nbsp;&nbsp;<input type='submit' name='update' id='update' value='Update Information'/></td>
    <td>&nbsp;</td>
  </tr>
</table>
</form>"; 
		}
	}

?>